package com.forezp.thinking.chapter18;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * Created by forezp on 2017/12/8.
 */
public class TestEFo {

    public static void main(String[] args) throws IOException {
        DataInputStream in = new DataInputStream(
                new BufferedInputStream(
                        new FileInputStream(BufferedInputFile.FILE_NAME)));
        while ((in.available()) != 0) {
            System.out.print((char) in.readByte());
        }
    }
}
